package com.pangu.bean;

import java.security.KeyStore;

/**
 * 运行时的上下文配置
 * <p/>
 * Created by cxlin
 */
public class ContextConfig {

    // 用户id
    private String userid;
    // 厂商id(合作方参数)
    private String vid;
    // 客户端类型，用于客户端升级，辅助后台查询数据。
    private String runType;
    // 渠道id(合作方参数)
    private String cid;
    // 根目录名
    private String rootPathName;
    // https证书
    private KeyStore httpsCertificate;
    //apikey
    private String apikey = "38d2c83663c24edc3c20121cf0dec430";

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getVid() {
        return vid;
    }

    public void setVid(String vid) {
        this.vid = vid;
    }

    public String getRunType() {
        return runType;
    }

    public void setRunType(String runType) {
        this.runType = runType;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getRootPathName() {
        return rootPathName;
    }

    public void setRootPathName(String rootPathName) {
        this.rootPathName = rootPathName;
    }

    public KeyStore getHttpsCertificate() {
        return httpsCertificate;
    }

    public void setHttpsCertificate(KeyStore httpsCertificate) {
        this.httpsCertificate = httpsCertificate;
    }

    public String getApikey() {
        return apikey;
    }

    @Override
    public String toString() {
        return "ContextConfig{" +
                "userid='" + userid + '\'' +
                ", vid='" + vid + '\'' +
                ", runType='" + runType + '\'' +
                ", cid='" + cid + '\'' +
                ", rootPathName='" + rootPathName + '\'' +
                ", httpsCertificate=" + httpsCertificate +
                ", apikey='" + apikey + '\'' +
                '}';
    }
}
